<template>
  <div class="layout">
    <div class="inner">
      <div class="tag">
        <template v-if="props.corps.account_type==1">
          主账号
        </template>
        <template v-else-if="props.corps.account_type==2">
          子账号
        </template>
      </div>
      <div class="container">
        <div class="firm">
          <div class="firm_title">{{props.corps.corp_name}}</div>
          <div class="firm_userInfo">
            <div class="firm_userInfo_icon">
              <img src="@/assets/image/account/role_icon.png" alt="" />
            </div>
            <div class="firm_userInfo_id">{{props.corps.role_name}}</div>
            <div class="firm_userInfo_name">{{props.corps.name}}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
interface props {
  corps:object;
}
const props = defineProps<{
  corps:props
}>()

</script>

<style lang="scss" scoped>
.layout {
  width: 550px;
  height: 200px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0px 6px 18px 0px #e4e4e4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  .inner {
    width: 529px;
    height: 164px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    .tag {
      width: 56px;
      height: 21px;
      margin: 14px 0 0 14px;
      text-align: center;
      background: #60b900;
      border-radius: 3px;
      font-size: 14px;
      font-weight: 300;
      color: #ffffff;
      line-height: 21px;
    }
    .container {
      text-align: center;
      margin-top: 26px;
      .firm {
        &_title {
          font-size: 26px;
          font-weight: 500;
          color: #33302d;
          line-height: 26px;
        }
        &_userInfo {
          display: flex;
          justify-content: center;
          align-items: center;
          margin-top: 12px;
          &_icon {
            width: 16px;
            height: 16px;
            img {
              width: 100%;
              height: 100%;
            }
          }
          &_id {
            font-size: 14px;
            font-weight: 300;
            color: #33302d;
            line-height: 14px;
            margin: 0 20px 0 4px;
          }
          &_name {
            font-size: 14px;
            font-weight: 300;
            color: #33302d;
            line-height: 14px;
          }
        }
      }
    }
  }
}
</style>